package com.keba.lamp.system.vo.save.tenant;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;

import java.util.List;

/**
 * @author zuihou
 * @date 2021/11/7 20:16
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = false)
@Builder
@Schema(description = "企业绑定用户")
public class DefTenantBindUserVO {

    /**
     * 公司id
     */
    @Schema(description = "公司id")
    private Long tenantId;

    /**
     * 用户id列表
     */
    @Schema(description = "用户id列表")
    @NotEmpty(message = "请选择用户")
    private List<Long> userIdList;

    @NotNull(message = "参数不能为空")
    private Boolean isBind;
}
